public class ArrayOps
{
   /**
      This method sums up both rows of a two-dimensional array
      (the only parameter to the method) and returns the greater sum.
      @param theArray, a 2-D array of integers
      @return, the greater row sum
   */
   public static int bigSum(int[][] theArray)
   {
      // your work here
      int num[] = new int[2];
      int a = 0;
      int b = 0;
      for (int i = 0; i < theArray.length; i++) 
      { 
			for (int j = 0; j < theArray[i].length; j++)
			{ 
				num[i] += theArray[i][j]; 
			}
		}
      a = num[0];
      b = num[1];
      if(a > b)
        return a;
      else 
        return b;
      // loop though theArray, summing first row 

      // your work here

      // loop though theArray, summing second row 

      // your work here

      // return larger sum

      // your work here

   }
}